<script type="text/javascript" src="<?php echo APPPATH ?>themes/admin/js/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="<?php echo APPPATH ?>themes/admin/js/ckeditor/adapters/jquery.js"></script>
<script type="text/javascript">
  var instance;
  function update_instance()  {
    instance = CKEDITOR.currentInstance;
  }

  (function($) {
    $(function(){
      tankCMS.init_ckeditor = function(){
        $('textarea.wysiwyg-simple').ckeditor({
          toolbar: [
            ['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink']
          ],
          width: '99%',
          height: 100,
          dialog_backgroundCoverColor: '#000',
          defaultLanguage: 'en',
          language: 'en'
        });
        $('textarea.wysiwyg-advanced').ckeditor({
          toolbar: [
            ['Maximize'],
            ['tankCMSimages', 'tankCMSfiles'],
            ['Cut','Copy','Paste','PasteFromWord'],
            ['Undo','Redo','-','Find','Replace'],
            ['Link','Unlink'],
            ['Table','HorizontalRule','SpecialChar'],
            ['Bold','Italic','StrikeThrough'],
            ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl'],
            ['Format', 'FontSize', 'Subscript','Superscript', 'NumberedList','BulletedList',
              'Outdent','Indent','Blockquote'],
            ['ShowBlocks', 'RemoveFormat', 'Source']
          ],
          extraPlugins: 'tankCMSimages,tankCMSfiles',
          width: '99%',
          height: 400,
          dialog_backgroundCoverColor: '#000',
          removePlugins: 'elementspath',
          defaultLanguage: 'en',
          language: 'en'
        });
      };
      tankCMS.init_ckeditor();
    });
  })(jQuery);
</script>
<li>
  <label for="key"><?php echo $this->lang->line('label.content.key') ?></label>
  <div class="input"><input type="text" id="key" value="<?php echo empty($obj["key"]) ? "" : $obj["key"] ?>" name="key">
  </div>
</li>
<li class="">
  <label for="body"><?php echo $this->lang->line('label.content.body') ?></label>
  <br style="clear:both">
  <textarea class="wysiwyg-advanced" rows="10" cols="40" name="content" 
            style="visibility: hidden; display: none;"><?php echo empty($obj['content']) ? '' : $obj['content'] ?></textarea>        		
</li>